<%-- 
    Document   : transactionHistory
    Created on : 25/09/2010, 12:22:20 PM
    Author     : scott
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>SwinBank - Transaction History</title>
    </head>
    <body>
        <h1>SwinBank - Transaction History</h1>
        <hr />
        <table border="1">
            <tr><th>Date</th><th>From Account</th><th>To Account</th><th>Type</th><th>Amount</th><th>Description</th></tr>
            <c:forEach var="currentItem" items="${history}">
                <tr><td><c:out value="${currentItem.getDate()}"/></td><td><c:out value="${currentItem.getSrcAccountId()}"/></td><td><c:out value="${currentItem.getDestAccountId()}"/></td><td><c:out value="${currentItem.getType()}"/></td><td>$<c:out value="${currentItem.getAmount()}"/></td><td><c:out value="${currentItem.getDescription()}"/></td></tr>
            </c:forEach>
        </table>
        <p><a href="main">Back to Main Menu</a></p>
    </body>
</html>
